/**
 * @author yosong
 * @time 2022-5-19 14:30PM
 * @description 菜单接口封装
 */

 import Ajax from "./Ajax";
 import { ADD_MENU, DEL_MENU, UPT_MENU } from './url.config'
 
 /** 登录接口 */
 export function addMenu(data) {
     return Ajax({
         url: ADD_MENU,
         method: 'put',
         data
     })
 }
 export function delMenu(id) {
     return Ajax({
         url: DEL_MENU + id,
         method: 'delete'
     })
 }
 export function uptMenu(data) {
     return Ajax({
         url: UPT_MENU,
         method: 'post',
         data
     })
 }

